package com.sx.pipeline.utils.kml;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: YY
 * @Date: 2022/8/4
 * @Desc:
 */
public class FileParseBean implements Serializable {

    // 名称
    private String name;
    // 类型 0-点 1-面 2-线
    // app 0- 绘制 1-kml 2-dxf
    private int type;
    // 经纬度
    private List<NodesBean> centerList;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public void setNodesBeans(List<NodesBean> nodesBeans) {
        this.centerList = nodesBeans;
    }

    public List<NodesBean> getNodesBeans() {
        return centerList;
    }


    public static class NodesBean implements Serializable {
        // 经度
        private String longitude;
        // 纬度
        private String latitude;

        public NodesBean(double lng, double lat) {
            this.longitude = String.valueOf(lng);
            this.latitude = String.valueOf(lat);
        }

        public String getLongitude() {
            return longitude;
        }

        public void setLongitude(Double longitude) {
            this.longitude = String.valueOf(longitude);
        }

        public String getLatitude() {
            return latitude;
        }

        public void setLatitude(Double latitude) {
            this.latitude = String.valueOf(latitude);
        }
    }
}
